package org.fatmansoft.teach.Repository.ViewRepository.PracticeInfo;

import org.fatmansoft.teach.entity.ViewEntity.PracticeInfo.PracticeType;
import org.fatmansoft.teach.entity.ViewEntity.PracticeInfo.StudentPractice;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface StudentPracticeRepository extends JpaRepository<StudentPractice, Integer> {
    List<StudentPractice> findStudentPracticesByStudentId(Integer studentNum);

    List<StudentPractice> findAllByStudentId(Integer studentId);

    List<StudentPractice> findAllByPracticeType(PracticeType practiceType);
}
